文章目录
  1. 1. spring JPA data 级联关系教程

spring JPA data 级联关系教程

JPA

https://en.wikibooks.org/wiki/Java_Persistence/OneToOne#Example_of_a_OneToOne_relationship_annotations

http://www.java2s.com/Tutorials/Java/JPA/0720__JPA_OneToOne_Join_Column.htm

https://hellokoding.com/jpa-one-to-one-shared-primary-key-relationship-mapping-example-with-spring-boot-maven-and-mysql/

http://www.cnblogs.com/ityouknow/p/5891443.html

官网文档

https://docs.spring.io/spring-data/data-jpa/docs/current/reference/html/#specifications

hibernate教程

https://www.objectdb.com/java/jpa/query/jpql/date

//JPA 自定义查询返回非entity对象实例

@Query(value = “SELECT count(task_event_key) id,task_event_key eventKey,hotel_code hotelCode \n” +

        “FROM h_bzy_collection_hotel_origin_store_manager_data\n” +

        “group by task_event_key,hotel_code”,nativeQuery = true)

List queryInserts();

DataMap.java:

public interface DataMap {

    String getId();

    String getEventKey();

    String getHotelCode();

}

文章目录
  1. 1. spring JPA data 级联关系教程